<script id="projects-template" type="text/x-jquery-tmpl">
    <td valign="top">
        <a class="top project light-box" href="javascript:void(0);" data="${album}">
            <img src="/assets/uploads/${$item.thumb(cover_name)}" alt="" onload="window.alignImage(this,0,360);"/>
        </a>
        <div class="bottom">${title}<br/>${$item.date(created_at)}</div>
        <div class="description" style="display:none;">{{html $item.nl2br(content)}}</div>
    </td>
</script>

<script id="entry-template" type="text/x-jquery-tmpl">
    {{if entry.cover_name}}
    <div class="z-circulate-show left-news" style="width:500px;height:360px;overflow: hidden;">
        <div class="z-image-container">
            <img src="/assets/img/z-ajax-loading.gif" class="z-image"/>
        </div>
        <ul class="z-button{{if photos.length <=1}} hidden{{/if}}">
            {{each(i,item) photos}}
            <li><a href="/assets/uploads/${file_name}">${i+1}</a></li>
            {{/each}}
        </ul>
    </div>
    {{else}}
    <div class="left-news">
	<img src="/assets/img/left_news.jpg" class="z-image" onload="window.alignImage(this,500,360);"/>
    </div>
    {{/if}}
    {{if type==0}}
    <div class="image">
	<img src="/assets/img/single-${entry.id}<?php echo $g_lang == 'en' ? '-en' : ''; ?>.jpg"/>
    </div>
    {{else}}
    <div class="image">
	<img src="/assets/img/entry-type-${type}<?php echo $g_lang == 'en' ? '-en' : ''; ?>.jpg"/>
	<a href="javascript:void(0);" class="entries" data="${entry.type}">
	    <img src="/assets/img/back<?php echo $g_lang == 'en' ? '-en' : ''; ?>.jpg"/>
	</a>
    </div>
    {{/if}}

    <div class="top text">
		{{if entry.id==8}}
			<div class="resume" style="color:#f0f0f0;border-bottom:1px solid #999999;padding-bottom:15px;margin-top:-50px;margin-bottom: 20px;"><?php echo $this->lang->line('resume_string');?></div>
		{{/if}}
        {{if type!=0}}<div class="title">${entry.title}</div>{{/if}}
        <div class="content">{{html entry.content}}</div>
    </div>
    <!--{{if type!=0}}<div class="bottom">${entry.title}<br/>${$item.date(entry.created_at)}</div>{{/if}}-->
</script>

<script id="entries-template" type="text/x-jquery-tmpl">
    {{if cover_name==null||cover_name==''}}
    <td valign="top" style="width:340px;">
        <a class="top text entry" href="javascript:void(0);" data="${id}/${type}">
            <div class="title">${title}</div>
            <div class="content">${$item.shortContent(content)}</div>
        </a>
        <div class="bottom">
            ${title}<br/>${$item.date(created_at)}
        </div>
    </td>
    {{else}}
    <td valign="top">
        <a class="top entry" href="javascript:void(0);" data="${id}/${type}">
            <img src="/assets/uploads/${$item.thumb(cover_name)}" alt="" onload="window.alignImage(this,0,360);"/>
        </a>
        <div class="bottom">${title}<br/>${$item.date(created_at)}</div>
    </td>
    {{/if}}
</script>

<script id="home-template" type="text/x-jquery-tmpl">
    {{if kindof==1}}
		{{if cover_name==null||cover_name==''}}
		<td valign="top" style="width:400px;">
			<a class="top text entry" href="javascript:void(0);" data="${id}/${type}">
			<div class="title">${title}</div>
			<div class="content">${$item.shortContent(content)}</div>
			</a>
			<div class="bottom">
			${title}<br/>${$item.date(created_at)}
			</div>
		</td>
		{{else}}
		<td valign="top">
			<a class="top entry" href="javascript:void(0);" data="${id}/${type}">
			<img src="/assets/uploads/${$item.thumb(cover_name)}" alt="" onload="window.alignImage(this,0,360);"/>
			</a>
			<div class="bottom">${title}<br/>${$item.date(created_at)}</div>
		</td>
		{{/if}}
    {{else}}
	<td valign="top" style="width:400px;">
	    <a class="top project light-box" href="javascript:void(0);" data="${album}">
		<img src="/assets/uploads/${$item.thumb(cover_name)}"  onload="window.alignImage(this,0,360);"/>
	    </a>
	    <div class="bottom">${title}<br/>${$item.date(created_at)}</div>
	    <div class="description" style="display:none;">{{html $item.nl2br(content)}}</div>
	</td>
    {{/if}}
</script>

<script id="message-template" type="text/x-jquery-tmpl">
    <div class="left-news" style="width:500px;height:360px;">
        <img src="/assets/img/left_feedback.jpg" alt="message" onload="window.alignImage(this,0,360);"/>
    </div>
    <div class="image"><img src="/assets/img/single-11<?php echo $g_lang == 'en' ? '-en' : ''; ?>.jpg"/></div>
    <div class="text single">
        <div class="content" style="height:280px;">
            <div class="inner-content">
                <form action="/message/insert" method="post">
		    <div class="form-row">
                        <label><?php echo $this->lang->line('company');?> :</label>
                        <input type="text" class="text" name="name"/>
                    </div>
                    <div class="form-row">
                        <label><?php echo $this->lang->line('name');?> :</label>
                        <input type="text" class="text" name="name"/>
                    </div>
                    <div class="form-row">
                        <label><?php echo $this->lang->line('telephone');?> :</label>
                        <input type="text" class="text" name="telephone"/>
                    </div>
                    <div class="form-row">
                        <label><?php echo $this->lang->line('email');?> :</label>
                        <input type="text" class="text" name="email"/>
                    </div>
                    <div class="form-row">
                        <label><?php echo $this->lang->line('address');?> :</label>
                        <input type="text" class="text" name="address"/>
                    </div>
                    <div class="form-row">
                        <label><?php echo $this->lang->line('content');?> :</label>
                        <textarea name="content" cols="30" rows="5" id="content"></textarea>
                    </div>
                    <div class="form-button">
                        <input type="submit" class="submit" name="submit" value="<?php echo $this->lang->line('submit');?>"/>
                        <input type="reset" class="reset" name="reset" value="<?php echo $this->lang->line('reset');?>"/>
                    </div>
                </form>
            </div>
        </div>
    </div>
</script>



<script id="job-template" type="text/x-jquery-tmpl">
    <div class="left-news">
	<img src="/assets/img/left_news.jpg" class="z-image" onload="window.alignImage(this,500,360);"/>
    </div>

    <div class="image">
	<img src="/assets/img/single-8<?php echo $g_lang == 'en' ? '-en' : ''; ?>.jpg"/>
    </div>

    <div class="top text">
	<div class="resume"><?php echo $this->lang->line('resume_string');?></div>
        <div class="content">
	    <ul>
	    {{each records}}
	    <li><a href="javascript:void(0);" class="job-show" data="${id}">${position}</a></li>
	    {{/each}}
	    </ul>
	</div>
    </div>
</script>

<script id="job-show-template" type="text/x-jquery-tmpl">
    <div class="job-show">{{html $item.nl2br(requirements)}}</div>
</script>